﻿<custom:UserControlExtended x:Class="TextGlow.Control.UI.PageCover"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:custom="clr-namespace:TextGlow.Control">
  <Canvas x:Name="LayoutRoot" Background="Green">
    <Canvas.Resources>
      <Storyboard x:Name="CoverAnimations">
        <DoubleAnimation x:Name="ScaleX" To="1" Duration="0:0:0.5" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" />
        <DoubleAnimation x:Name="ScaleY" To="1" Duration="0:0:0.5" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" />
        <DoubleAnimation x:Name="AngleX" To="0" Duration="0:0:0.5" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(SkewTransform.AngleY)" />
        <DoubleAnimation x:Name="TranslateX" To="0" Duration="0:0:0.5" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(TranslateTransform.X)" />
        <DoubleAnimation x:Name="TranslateY" To="0" Duration="0:0:0.5" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(TranslateTransform.Y)" />
        <DoubleAnimation x:Name="Opacity" To="1" Duration="0:0:0.5" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="Opacity" />
      </Storyboard>
    </Canvas.Resources>
    <Canvas.RenderTransform>
      <TransformGroup>
        <ScaleTransform ScaleX="1" ScaleY="1" />
        <SkewTransform AngleX="0" AngleY="0" />
        <TranslateTransform X="0" Y="0" x:Name="TranslateTransform" />
      </TransformGroup>
    </Canvas.RenderTransform>
    <StackPanel Name="video0" Canvas.ZIndex="10" MouseLeftButtonDown="ChangeVideo" />
    <Canvas x:Name="Green" Background="Green" Opacity="0.2" Visibility="Collapsed" />
    <Canvas Width="640" Height="300" Visibility="Collapsed" Canvas.Top="300" x:Name="videoflow_reflection" Opacity="0.8" RenderTransformOrigin="0.5,0.5">
      <Canvas.RenderTransform>
        <ScaleTransform ScaleX="1" ScaleY="-1"/>
      </Canvas.RenderTransform>
      <Canvas.OpacityMask>
        <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
          <GradientStop Color="#00000000" Offset="0"/>
          <GradientStop Color="#FF000000" Offset="1"/>
        </LinearGradientBrush>
      </Canvas.OpacityMask>
      <Canvas Name="video0_reflection" RenderTransformOrigin="0.5,0.5" Width="240" Height="240">
      </Canvas>
    </Canvas>
  </Canvas>
</custom:UserControlExtended>